Skip to content

fix(web): derive greeting name from email, not the userId hash - #19

Merged
Lingz450 merged 1 commit into
mainfrom
fix/web-greeting-name-fallback
Jun 23, 2026
Merged

fix(web): derive greeting name from email, not the userId hash#19
Lingz450 merged 1 commit into
mainfrom
fix/web-greeting-name-fallback

Conversation

@Lingz450

Copy link
Copy Markdown
Collaborator

Summary

On a device with no local call-me/display name set, the chat empty-state greeting fell back to principal.userId (an opaque hash), rendering as "Good evening, 6b72871a" on mobile while desktop showed the custom name. Prefer principal.email for the fallback so it derives a human-readable name available on every device.

Scope / follow-up

This fixes the ugly hash only. The custom "call me" name is still per-device (localStorage), so it won't match across devices until it's account-bound. True cross-device sync is the Track A Settings slice (account_profiles.display_name + GET/PATCH /profile, per docs/TRACK_A_SETTINGS_SPEC.md); wiring apps/web to that endpoint is the planned follow-up once the backend lands.

Typecheck passes.

🤖 Generated with Claude Code

When no custom call-me/display name is set (e.g. a fresh device with no
local settings), the empty-state greeting fell back to principal.userId,
which is an opaque hash and rendered as "Good evening, 6b72871a". Prefer
principal.email so it derives a human name available on every device.

Note: the custom call-me name is still device-local (localStorage). True
cross-device consistency is the Track A /profile (account_profiles.
display_name) slice; wire apps/web to it once that backend lands.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
petrobrain Ready Ready Preview, Comment Jun 23, 2026 7:25pm

@Lingz450
Lingz450 merged commit 851333b into main Jun 23, 2026
7 checks passed
@Lingz450
Lingz450 deleted the fix/web-greeting-name-fallback branch June 23, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant